# -*- coding: utf-8 -*- 
#
# Description:
#
#  Definiton
#
#
#
# Changes:
#
# 2012-01-10
# Initial Commit
#
#
# Copyright 2010-2012, WyDev Team.
# Author: Polo35 (polo35580@hotmail.fr)
#
# Licenced under Academic Free License version 3.0
# Review WyGui README & LICENSE files for further details.

nname: 94
n 94(None)[return None
]:
	i: 61(), 93()
	o: 

nname: 93
n 93(None)[]:
	i: 0(f)
	o: 94()

nname: 61
n 61(None)[from pygui.menu.players import WebBrowser
URLItem.player = WebBrowser()
]:
	i: 0(t)
	o: 94()

nname: 0
n 0(URLItem.player is None)[Item.__init__(self, name=name, type_=type_, menu=menu, display_type=display_type)
self.url = url
]:
	i: 
	o: 61(t), 93(f)

nname: 0
n 0(None)[Item.__init__(self, name=name, type_=type_, menu=menu, display_type=display_type)
self.url = url
if URLItem.player is None:
	from pygui.menu.players import WebBrowser
	URLItem.player = WebBrowser()
return None
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb774a54c>}
nname: 53
n 53(None)[return None
]:
	i: 15(), 36()
	o: 

nname: 36
n 36(None)[self.player.play(self)
]:
	i: 0(f)
	o: 53()

nname: 15
n 15(None)[log.warning('No Browser available')
return None
]:
	i: 0(t)
	o: 53()

nname: 0
n 0(self.player is None)[]:
	i: 
	o: 15(t), 36(f)

nname: 0
n 0(None)[if self.player is None:
	log.warning('No Browser available')
	return None
else:
	self.player.play(self)
return None
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb774a24c>}
nname: 6
n 6(None)[player = None
def __init__(self, name, url=None, type_='url', menu=None, display_type='url'):
	Item.__init__(self, name=name, type_=type_, menu=menu, display_type=display_type)
	self.url = url
	if URLItem.player is None:
		from pygui.menu.players import WebBrowser
		URLItem.player = WebBrowser()
	return None

def execute(self):
	if self.player is None:
		log.warning('No Browser available')
		return None
	else:
		self.player.play(self)
	return None

]:
	i: 
	o: 

self.nodes: {6: <unpyclib.structure.node instance at 0xb7742bec>}
nname: 0
n 0(None)[from __future__ import absolute_import
from .core import Item
class URLItem(Item):
	player = None
	def __init__(self, name, url=None, type_='url', menu=None, display_type='url'):
		Item.__init__(self, name=name, type_=type_, menu=menu, display_type=display_type)
		self.url = url
		if URLItem.player is None:
			from pygui.menu.players import WebBrowser
			URLItem.player = WebBrowser()
		return None

	def execute(self):
		if self.player is None:
			log.warning('No Browser available')
			return None
		else:
			self.player.play(self)
		return None



]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb774254c>}
from __future__ import absolute_import
from .core import Item
class URLItem(Item):
	player = None
	def __init__(self, name, url=None, type_='url', menu=None, display_type='url'):
		Item.__init__(self, name=name, type_=type_, menu=menu, display_type=display_type)
		self.url = url
		if URLItem.player is None:
			from pygui.menu.players import WebBrowser
			URLItem.player = WebBrowser()
		return None

	def execute(self):
		if self.player is None:
			log.warning('No Browser available')
			return None
		else:
			self.player.play(self)
		return None



